<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户权限管理</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/static/bootstrap/css/bootstrap.css">
<style type="text/css">
	.msg{
		color:red;
		font-size:12px;
	}
</style>
</head>
<body>
	<h1>用户管理</h1>
	<input type="button" value="返回" onclick="history.go(-1)">
	<div>
		<table class="table table-bordered table-striped table-hover">
			<tr>
				<td>编号</td>
				<td>卡号</td>
				<td>用户名</td>
				<td>密码</td>
				<td>套餐</td>
				<td>预存金额</td>
				<td>剩余金额</td>
				<td>注册时间</td>
				<td>状态</td>
				<td>用户权限</td>
				<td>删除<td>
				<td>修改</td>
			</tr>
			<c:forEach var="user" items="${pagehelper.list }" varStatus="vs">
				<tr>
					<td>${vs.count }</td>
					<td>${user.card_number }</td>
					<td>${user.username }</td>
					<td>${user.password }</td>
					<td>${user.planName }</td>
					<td>${user.prepaid_amount }</td>
					<td>${user.balance }</td>
					<td>${user.register_time }</td>
					<td>${user.statusName }</td>
					<td>${user.role }</td>
					<td><a href="deleteUser?id=${user.id}">删除</a><td>
					<td><a href="update_user?id=${user.id}">修改</a><td>
				</tr>
			</c:forEach>	
		</table>
		<%@include file="pagehelper.jsp" %>
		<div class="msg" align="conter">${msg }</div>
		<a href="addUser">添加用户</a>
		<a href="plsc">批量操作</a>
	</div>
</body>
</html>